package com.goktech.sportsmall.controller;


import com.goktech.sportsmall.service.CommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/comm")
public class VueCommodityController {
    @Autowired
    CommodityService commodityService;

    @GetMapping("/getInfo")
    public Map<String,Object> getInfo(){
        return commodityService.vueSelectCount();
    }
}
